<template>
  <div id="app" v-cloak>
    <router-view />
  </div>
</template>

<script>

export default {
  name: 'App',
  mounted () {
    window.onload = () => {
      if (!window.sessionStorage["ISlogin"]) {
        // 关闭浏览器
        window.localStorage.clear()
        // this.$router.push('/login')
        window.location.href = this.$loginUrl
        // window.localStorage.removeItem("userInfo");
      }
    };
    window.onunload = function () {
      window.sessionStorage["ISlogin"] = true;
    }
    window.onbeforeunload = function () {
      window.sessionStorage["ISlogin"] = true;
    }
  }
}
</script>

<style>
[v-cloak] {
  display: none;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0
}

ul,
li,
a,
b,
em {
  list-style: none;
  font-weight: normal;
  font-style: inherit;
  text-decoration: none;
}

.w1200 {
  width: 1200px;
}

.w1400 {
  width: 1400px;
}

.el-button--small {
  font-size: 12px;
}

.el-table th.el-table__cell>.cell {
  font-size: 14px;
}

.el-input__inner {
  font-size: 14px;
}

.el-pager li {
  height: 28px !important;
  width: 28px;
  line-height: 28px !important
}

.examFootercontent[data-v-9c83160c] .el-pagination button {
  height: 35px;
}

.el-checkbox {
  font-size: 14px;
}

.el-checkbox__label {
  font-size: 14px;
}
</style>
